import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
import * as api from './api';
import store from './store/index'
import currency from './utils/index'
Vue.use(uView);

Vue.config.productionTip = false
Vue.prototype.$currency=currency

//获取小程序的APPID
const accountInfo = wx.getAccountInfoSync();
const APPID = accountInfo.miniProgram.appId
//动态获取域名
// let extConfig = wx.getExtConfigSync? wx.getExtConfigSync(): ''
// console.log(extConfig)
// if(extConfig.attr&&extConfig.attr.host){
// 	Vue.prototype.$baseUrl= extConfig.attr.host + '/' + APPID +'/'
// } else{
// 	Vue.prototype.$baseUrl= 'https://yaogeeks.dindong.cn/'+APPID+'/'
// }
	Vue.prototype.$baseUrl= 'https://dengguan.dindong.cn/api/'

Vue.prototype.$api=api
Vue.prototype.$store = store
Vue.prototype.$errorImgUrl = 'https://rzkeji.oss-cn-shenzhen.aliyuncs.com/web/yaojike2020/images/other/loading_error.png'
App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
